<?php

namespace Database\Factories;

use App\Models\WechatMedia;
use Illuminate\Database\Eloquent\Factories\Factory;

class WechatMediaFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = WechatMedia::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'key_id' => $this->faker->numberBetween(1, 1000),
            'media_id' => $this->faker->numberBetween(1000000, 9999999),
            'type' => $this->faker->text(10),
            'content' => $this->faker->text(25),
            'path' => $this->faker->text(15),
            'url' => 'http://' . $this->faker->text(10) . 'com',
            'temporary' => $this->faker->randomElement([0, 1]),
        ];
    }
}
